package cn.kgc.service;

import cn.kgc.entity.Classes;
import cn.kgc.mapper.ClassesMapper;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Component
@Transactional
public class ClassesServiceImpl implements ClassesService{
    @Resource
    private ClassesMapper classesMapper;
    @Override
    public List<Classes> getClasses() {
        return classesMapper.getClasses();
    }
}
